export const http = (url,data={},method = 'GET') =>{
    return new Promise((reslove, reject)=>{
                           uni.request({
								url: url,
								data: data,
								method: method, // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
								success: function(res){
									reslove(res)
								},
								fail: function(err) {
									reject(err)
								}
							})
    })
}
